import random
a = (-7, -8)
b = (5, -8)
c = (5, 5)
d = (-7, 5)
n = int(input("Количество выстрелов: "))
hits = 0
for _ in range(n):
        x = random.randint(-100, 100)
        y = random.randint(-100, 100)
        if a[0] <= x <= b[0] and a[1] <= y <= d[1]:
            hits += 1
print("Количество попаданий:", hits)
